<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
</head>
<body>
	<script type="text/javascript" src="sockjs.min.js"></script>
	<script type="text/javascript">
		var websocket;

		if ('WebSocket' in window) {
			websocket = new WebSocket("ws://140.143.49.194:8082/api/notifications");
		} else if ('MozWebSocket' in window) {
			websocket = new MozWebSocket("ws://140.143.49.194:8082/api/notifications");
		} else {
			websocket = new SockJS("http://140.143.49.194:8082/api/notifications");
		}

		websocket.onopen = function(evnt) {
			
		};
		websocket.onmessage = function(evnt) {
			$("#test").html("(<font color='red'>" + evnt.data + "</font>)")
		};

		websocket.onerror = function(evnt) {
		};
		websocket.onclose = function(evnt) {
		}

		
	</script>
	
	<div id="test">
	
	</div>
</body>
</html>